<template>
  <div class="page-404-view">
    <SvgIcon icon="public-404"></SvgIcon>
    <div class="desc">抱歉，你访问的页面不存在或无权访问</div>
    <el-button type="primary" @click="backHome">回到首页</el-button>
  </div>
</template>

<script lang="ts" setup>
defineOptions({
  name: "Page404"
});
/**
 * @description: 回到首页
 * @return {*}
 */
let backHome = () => {
  location.href = "/";
};
</script>

<style lang="scss" scoped>
.page-404-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  .svg-icon {
    width: 250px;
    height: 250px;
  }

  .desc {
    color: #999;
    font-size: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .el-button {
    margin-bottom: 60px;
  }
}
</style>
